import Types from '../../action/types.js';


const defaultState = {

};
export default function onAction(state = defaultState, action) {
  switch (action.type) {
    case Types.LOGIN_READY:
      return {
        ...state,
      };
      break;
    case Types.LOGIN_SUCCESS:
      return {
        ...state,
        login: action.login
      };
      break;
    case Types.LOGIN_FAIL:
      return {
        ...state,
        error: action.error
      };
      break;
    default:
      return state
  }
}